package com.sinosoft.ebusiness.domain.elementManage;
// 采用工具 Hibernate Tools 3.2.4.GA (sinosoft version) 生成，请勿手工修改。

import javax.persistence.Column;
import javax.persistence.Embeddable;


/**
 * POJO类GeGroupviewItemId
 */
@Embeddable
public class GeGroupviewItemId implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6225258760388839054L;

	/** 属性groupcode */
	private String groupcode;

	/** 属性标的项目类别代码 */
	private String itemCode;

	/**
	 * 类GeGroupviewItemId的默认构造方法
	 */
	public GeGroupviewItemId() {
	}

	/**
	 * 属性groupcode的getter方法
	 */

	@Column(name = "GROUPCODE")
	public String getGroupcode() {
		return this.groupcode;
	}

	/**
	 * 属性groupcode的setter方法
	 */
	public void setGroupcode(String groupcode) {
		this.groupcode = groupcode;
	}

	/**
	 * 属性标的项目类别代码的getter方法
	 */

	@Column(name = "ITEMCODE")
	public String getItemCode() {
		return this.itemCode;
	}

	/**
	 * 属性标的项目类别代码的setter方法
	 */
	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}

	public boolean equals(Object other) {
		if ((this == other)) {
			return true;
		}
		if ((other == null)) {
			return false;
		}
		if (!(other instanceof GeGroupviewItemId)) {
			return false;
		}
		GeGroupviewItemId castOther = (GeGroupviewItemId) other;

		return ((this.getGroupcode() == castOther.getGroupcode()) || (this
				.getGroupcode() != null && castOther.getGroupcode() != null && this
				.getGroupcode().equals(castOther.getGroupcode())))
				&& ((this.getItemCode() == castOther.getItemCode()) || (this
						.getItemCode() != null
						&& castOther.getItemCode() != null && this
						.getItemCode().equals(castOther.getItemCode())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getGroupcode() == null ? 0 : this.getGroupcode().hashCode());
		result = 37 * result
				+ (getItemCode() == null ? 0 : this.getItemCode().hashCode());
		return result;
	}

}
